MONGOOSE_DIR=./mongoose

all:
	cd $(MONGOOSE_DIR) && make linux
	cp $(MONGOOSE_DIR)/_mongoose.so ./
	cp $(MONGOOSE_DIR)/bindings/python/mongoose.py ./
install:
	mkdir -p $(DESTDIR)/usr/share/pixmaps
	mkdir -p $(DESTDIR)/usr/share/applications
	mkdir -p $(DESTDIR)/usr/share/poorguy
	mkdir -p $(DESTDIR)/usr/bin

	cp poorguy.png $(DESTDIR)/usr/share/pixmaps
	cp poorguy.desktop $(DESTDIR)/usr/share/applications
	cp gui.ui $(DESTDIR)/usr/share/poorguy
	cp _mongoose.so $(DESTDIR)/usr/share/poorguy
	cp mongoose.py $(DESTDIR)/usr/share/poorguy
	cp poorguy.py $(DESTDIR)/usr/share/poorguy
	cp poorguy $(DESTDIR)/usr/bin
clean:
	rm -rf mongoose.py *.so *.pyc
	rm -rf ./debian/poorguy